home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 February: Technology Seed / Mac Tech Seed Feb '97.toast / OpenDoc 1.2b2c1 / OpenDoc / OpenDoc Utilities / Interfaces / FindOpenDocFolder.h < prev    next >
Encoding:
C/C++ Source or Header  |  1997-01-01  |  1.4 KB  |  49 lines  |  [TEXT/MPS ]

  1. /*
  2.  
  3.     File:        FindOpenDocFolder.h
  4.     
  5.     Contents:    Utility routines for finding OpenDoc folders by looking
  6.                 in several places.
  7.     
  8.     Owned by:    Troy Gaul
  9.     
  10.     Copyright:    © 1996 Apple Computer, Inc.  All rights reserved.
  11.     
  12.     Change History (most recent first):
  13.     
  14.          <1>      12/19/96    TJ        first checked in
  15.         12/18/96    TAG        Created.
  16.     
  17. */
  18. #ifndef _FINDOPENDOCFOLDER_
  19. #define _FINDOPENDOCFOLDER_
  20.  
  21. #ifndef __FOLDERS__
  22. #include <Folders.h>
  23. #endif
  24.  
  25. //------------------------------------------------------------------------------
  26. //    Constants
  27. //------------------------------------------------------------------------------
  28. enum
  29. {
  30.     kOpenDocEditorsFolderType        = 'oded',    // Editors folder
  31.     kOpenDocFolderType                = 'odod',    // OpenDoc folder (in Editors)
  32.     kOpenDocShellPluginsFolderType    = 'odsp',    // Shell Plug-Ins folder
  33.     kOpenDocLibrariesFolderType        = 'odlb',    // OpenDoc Libraries folder
  34.     kOpenDocStationeryFolderType    = 'odst'    // Stationery
  35. };
  36.  
  37. enum
  38. {
  39.     kOpenDocFLDxResourceID            = 128        // ID for your code's 'fld#' resource
  40. };
  41.  
  42. //------------------------------------------------------------------------------
  43. //    Functions
  44. //------------------------------------------------------------------------------
  45. extern pascal OSErr FindOpenDocFolder(short inVRefNum, OSType inFolderType, Boolean inCreateFolder,
  46.                                short* outFoundVRefNum, long* outFoundDirID);
  47.  
  48. //------------------------------------------------------------------------------
  49. #endif